<%@ page contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<html>
<head>
</head>
<body style="font-size:30px;">
<form method="post" 
      action="${pageContext.request.contextPath}/test/doUpload.do" 
        enctype="multipart/form-data">
  <input type="file" name="file" id="file">
  <br>
  <input type="submit" value="上传">
</form>

</body>
</html>